﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AddUser.ascx.cs" Inherits="SalesManagement.Controls.List.AddUser" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<ext:Window ID="winDetails" runat="server" Title="Thêm người dùng" Icon="UserAdd"
    Width="500" Height="250" Modal="true" Hidden="true" Layout="FormLayout" Padding="5">
    <Items>
        <ext:TextField ID="txt1" FieldLabel="Tên người dùng (*)" runat="server" Width="200" />
        <ext:CompositeField ID="cf1" FieldLabel="Mật khẩu (*)" runat="server">
            <Items>
                <ext:TextField ID="TextField1" runat="server" Width="200" InputType="Password" />
                <ext:Button ID="btnChangePass" runat="server" Text="Thay đổi Password">
                    <DirectEvents>
                        <Click OnEvent="btnChangePass_Click" />
                    </DirectEvents>
                </ext:Button>
            </Items>
        </ext:CompositeField>
        <ext:TextField ID="TextField2" FieldLabel="Xác nhận mật khẩu (*)" runat="server"
            Width="200" InputType="Password" />
        <ext:ComboBox ID="ComboBox2" FieldLabel="Nhóm người dùng" runat="server" Width="200"
            Editable="false" DataIndex="Title">
            <Items>
                <ext:ListItem Text="Admin" Value="hcm" />
                <ext:ListItem Text="User" Value="hn" />
            </Items>
            <SelectedItem Value="hcm" />
        </ext:ComboBox>
        <ext:ComboBox ID="ComboBox1" FieldLabel="Nhân viên" runat="server" Width="200" Editable="false"
            DataIndex="Title">
            <Items>
                <ext:ListItem Text="A" Value="hcm" />
                <ext:ListItem Text="B" Value="hn" />
            </Items>
            <SelectedItem Value="hcm" />
        </ext:ComboBox>
    </Items>
    <Buttons>
        <ext:Button ID="btnSave" runat="server" Text="Save" Icon="Disk">
            <DirectEvents>
                <Click OnEvent="btnSave_Click" />
            </DirectEvents>
        </ext:Button>
        <ext:Button ID="btnCancel" runat="server" Text="Cancel" Icon="Cancel">
            <Listeners>
                <Click Handler="#{winDetails}.hide();" />
            </Listeners>
        </ext:Button>
    </Buttons>
</ext:Window>
